﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:src="clr-namespace:ETRobocon.RaceTraking.GamePresentation"
    xmlns:basesrc="clr-namespace:ETRoboConTrakingSystem;assembly=ETRoboConTrakingSystem"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" x:Class="ETRobocon.RaceTraking.GamePresentation.UserControlTeamInfo"
    Height="500" Width="500">
	
    <UserControl.Resources>
    	<ResourceDictionary>
    		<ResourceDictionary.MergedDictionaries>
    			<ResourceDictionary Source="Styles/ResourceDictionary.xaml"/>
    		</ResourceDictionary.MergedDictionaries>
			
	        <basesrc:RunnerInfo x:Key="CurrentRunner"/>
            
		</ResourceDictionary>
    </UserControl.Resources>
	
	<Grid DataContext="{Binding Source={StaticResource CurrentRunner}}">
		<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="17,75,0,0">
			<TextBlock x:Name="CurrentTeamBib" Text="{Binding Bib}" VerticalAlignment="Center" Width="70" HorizontalAlignment="Left" TextWrapping="Wrap" FontWeight="Bold" FontSize="24" Foreground="{DynamicResource FontColorBrush04}"/>
			<TextBlock x:Name="CurrentTeamName" Text="{Binding TeamName}" VerticalAlignment="Center" Width="170" HorizontalAlignment="Left" TextWrapping="Wrap" FontSize="24" Foreground="{DynamicResource FontColorBrush04}"/>
			<DockPanel x:Name="TimerCounterPanel" Width="215">
				<src:RunnerTimerCounterUserControl x:Name="TimerCounter"/>
				<TextBlock x:Name="PreviousRoundStatus" Text="{Binding PreviousRoundStatus}" VerticalAlignment="Top" Foreground="Crimson"/>
			</DockPanel>
		</StackPanel>
		<TextBlock x:Name="CurrentTeamRunTime" Text="{Binding RunTime}"  Style="{DynamicResource ResultTimeTextBlockStyle}" HorizontalAlignment="Left" Width="150" VerticalAlignment="Top" Margin="330,220,0,0" />
		<TextBlock x:Name="CurrentTeamPoint" Text="{Binding Point}" Style="{DynamicResource ResultTimeTextBlockStyle}" HorizontalAlignment="Left" Width="150" VerticalAlignment="Top" Margin="330,313,0,0"/>
	</Grid>
</UserControl>
